package com.lqwu.mallchatserver.common.event;

import com.lqwu.mallchatserver.user.model.entry.GroupMember;
import com.lqwu.mallchatserver.user.model.entry.RoomGroup;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

import java.time.Clock;
import java.util.List;

/**
 * 群聊成员添加事件
 */
@Getter
public class GroupMemberAddEvent extends ApplicationEvent {
    /**
     * 群聊
     */
    private RoomGroup roomGroup;
    /**
     * 添加的群成员列表
     */
    private List<GroupMember> groupMemberList;
    /**
     * 群主id
     */
    private Long uid;

    public GroupMemberAddEvent(Object source,  RoomGroup roomGroup, List<GroupMember> groupMemberList, Long uid) {
        super(source);
        this.roomGroup = roomGroup;
        this.groupMemberList = groupMemberList;
        this.uid = uid;
    }

}
